<extend name="default/public/common" />
<block name="main">
    <if condition="$mark eq 'index'">
      <include file="default/slider/index" />
    <elseif condition="$mark eq 'system'" />
      <include file="default/slider/system" />
    <elseif condition="$mark eq 'user'" />
      <include file="default/slider/user" />
    <elseif condition="$mark eq 'content'" />
      <include file="default/slider/content" />
    <elseif condition="$mark eq 'extend'" />
      <include file="default/slider/extend" />
    <elseif condition="$mark eq 'count'" />
        <include file="default/slider/count" />
    <elseif condition="$mark eq 'module'" />
        <include file="default/slider/module" />
    </if>
    <div class="main">
        <div class="crumb">
            <div class="page-actions pull-right">
                <div class="btn-group">
                    <button type="button" class="btn btn-sm btn-back" title="返回"><i class="icon icon-reply"></i></button>
                    <button type="button" class="btn btn-sm btn-refresh" title="刷新"><i class="icon icon-refresh"></i></button>
                    <button type="button" class="btn btn-sm btn-next" title="前进"><i class="icon icon-reply icon-flip-horizontal"></i></button>
                </div>
            </div>
            <ul class="breadcrumb">
                <li><i class="icon icon-home"></i></li>
                <volist name="bread_crumb" id="vo">
                  <li>{$vo}</li>
                </volist>
            </ul>
        </div>
        <div class="container-fluid">
            <div class="panel">
                <div class="panel-heading">
                    <div class="btn-actions">
                        <volist name="top_button_list" id="vo">
                            <button data-url="{$vo['href']}" class="{$vo['class']}">{$vo['title']}</button>&nbsp;
                        </volist>
                    </div>
                </div>
                <div class="panel-body">
                  <div class="data-list">
                      <table class="table datatable table-bordered table-hover">
                          <thead>
                              <tr>
                                  <volist name="table_column_list" id="vo">
                                    <th data-sort="{$vo.sort}" data-type="{$vo.type}" data-width="{$vo.width}">{$vo.title}</th>
                                  </volist>
                              </tr>
                          </thead>
                          <tbody>
                              <volist name="table_data_list" id="data">
                                  <tr data-id="{$data.id}">
                                      <volist name="table_column_list" id="column">
                                          <if condition="$column['type'] eq 'rightbtn'">
                                              <td>
                                                  <volist name="data['right_button']" id="vo">
                                                      <button data-url="{$vo['href']}" class="{$vo['class']}">{$vo['title']}</button>&nbsp;
                                                  </volist>
                                              </td>
                                          <else />
                                              <td>{$data[$column['name']]}</td>
                                          </if>
                                      </volist>
                                  </tr>
                              </volist>
                              <empty name="table_data_list">
                                  <tr class="builder-data-empty">
                                      <php>$tdcolspan = count($table_column_list)</php>
                                      <td class="text-center empty-info" colspan="{$tdcolspan}" style="width:auto !important;">
                                          <i class="icon icon-database"></i> 暂时没有数据
                                      </td>
                                  </tr>
                              </empty>
                          </tbody>
                      </table>
                      <notempty name="table_data_page">
                          <div class="page">{$table_data_page}</div>
                      </notempty>
                  </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="footer">
    <link rel="stylesheet" href="__dist__/lib/zoomify/zoomify.css">
    <script type="text/javascript" src="__dist__/lib/zoomify/zoomify.js"></script>
    <link rel="stylesheet" href="__dist__/lib/datatable/zui.datatable.css">
    <script type="text/javascript" src="__dist__/lib/datatable/zui.datatable.js"></script>
    <script type="text/javascript" src="__js__/table.js"></script>
</block>
